package com.fushenlan.epidemicControl.service;

import com.fushenlan.po.NeighborhoodMemberDO;

import java.util.Map;

/**
 * @Author XUJIN
 * @DATE 2022/4/21
 * @PACKAGE_NAME com.fushenlan.epidemicControl.service
 * @VERSION 1.0
 */
public interface NeighborhoodMemberService {

    /**
     * 根据账号和密码查询用户信息
     *
     * @param account 账号
     * @return
     */
    Map<String, Object> findUser(String account);

    /**
     * 根据
     *
     * @param id     居委会成员表主键id
     * @param pwd    初始明文密码
     * @param md5Pwd md5加密后的密码
     * @return
     */
    NeighborhoodMemberDO findUserByPwd(Long id, String pwd, String md5Pwd);

    void update(NeighborhoodMemberDO memberDO);
}
